/**
 * Copyright &copy; 2012-2017 <a href="http://minglisoft.cn">HongHu</a> All rights reserved.
 */
package com.honghu.cloud.feign;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.honghu.cloud.dto.GoodsClassDto;

/**
 * 商品分类feign调用类
 * @author Administrator
 *
 */
@FeignClient(name="honghu-goods-service" ,path="goodsClass")
public interface GoodsClassFeignClient{

	/**
	 * 查询分类条目
	 * @param congelationDto
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/queryClassSize", method = RequestMethod.POST)
	public Integer queryClassSize(@RequestBody Map<String, Object> params);
	
	/**
	 * 根据id查询商品分类
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/selectByPrimaryKey", method = RequestMethod.GET)
	public GoodsClassDto selectByPrimaryKey(@RequestParam("id") Long id);
	
	/**
	 * 查询商品分类
	 * @param params
	 * @return
	 */
	@RequestMapping(value = "/apiForFeign/queryPageList", method = RequestMethod.POST)
	public List<GoodsClassDto> queryPageList(@RequestBody Map<String, Object> params);
	
}